/* system-cms-prefix start */
const prefix: string = "/server-admin";
/* system-cms-prefix change const prefix = '/server-admin' system-cms-prefix change */
/* system-cms-prefix end */
const host = window.location.protocol + '//' + window.location.host
const protocol = host.indexOf('https') > -1 ? 'https' : 'http'
const prefix2 = protocol+'://api.jeecms.com'

export default {
  //评论管理
  //添加评论
  commentAddComment: `${prefix}/comment/addComment`,
  //评论点赞
  commentAddLikeCnt: `${prefix}/comment/addLikeCnt`,
  //管理员回复
  commentAdminReply: `${prefix}/comment/adminReply`,
  //审核不通过
  commentAuditFailed: `${prefix}/comment/auditFailed`,
  //审核通过
  commentAuditPass: `${prefix}/comment/auditPass`,
  //取消举报
  commentCancelReport: `${prefix}/comment/cancelReport`,
  //解除ip禁言
  commentCancelSilencedCommentIp: `${prefix}/comment/cancelSilencedCommentIp`,
  //解除评论者禁言
  commentCancelSilencedCommentator: `${prefix}/comment/cancelSilencedCommentator`,
  //获取评论举报
  commentCommentReports: `${prefix}/comment/commentReports`,
  //删除评论
  commentDelete: `${prefix}/comment/delete`,
  //当前站点是否需要审核评论
  commentIsNeedAudit: `${prefix}/comment/isNeedAudit`,
  //评论分页
  commentPage: `${prefix}/comment/page`,
  //举报评论分页
  commentReportPage: `${prefix}/comment/report/page`,
  //评论举报
  commentReportComment: `${prefix}/comment/reportComment`,
  //禁言评论ip
  commentSilencedCommentIp: `${prefix}/comment/silencedCommentIp`,
  //禁言评论者
  commentSilencedCommentator: `${prefix}/comment/silencedCommentator`,
  //管理员更新回复
  commentUpdateAdminReply: `${prefix}/comment/updateAdminReply`,
  //用户禁言分页
  silencedUserPage: `${prefix}/silencedUser/page`,
  //用户取消禁言
  silencedUserCancelSilencedUser: `${prefix}/silencedUser/cancelSilencedUser`,
  //IP禁言分页
  silencedIpPage: `${prefix}/silencedIp/page`,
  //IP取消禁言
  silencedIpCancelSilencedIp: `${prefix}/silencedIp/cancelSilencedIp`,
  //举报数目
  commentReportedCnt: `${prefix}/comment/reportedCnt`,
};
